Optimal. Leaf size=25 \[ \frac{x^3}{3}-x+\frac{\tan ^{-1}\left (\sqrt{2} x\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0241169, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {1593, 459, 321, 203} \[ \frac{x^3}{3}-x+\frac{\tan ^{-1}\left (\sqrt{2} x\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 459
Rule 321
Rule 203
Rubi steps
\begin{align*} \int \frac{-x^2+2 x^4}{1+2 x^2} \, dx &=\int \frac{x^2 \left (-1+2 x^2\right )}{1+2 x^2} \, dx\\ &=\frac{x^3}{3}-2 \int \frac{x^2}{1+2 x^2} \, dx\\ &=-x+\frac{x^3}{3}+\int \frac{1}{1+2 x^2} \, dx\\ &=-x+\frac{x^3}{3}+\frac{\tan ^{-1}\left (\sqrt{2} x\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [A] time = 0.0101867, size = 25, normalized size = 1. \[ \frac{x^3}{3}-x+\frac{\tan ^{-1}\left (\sqrt{2} x\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 21, normalized size = 0.8 \begin{align*} -x+{\frac{{x}^{3}}{3}}+{\frac{\arctan \left ( x\sqrt{2} \right ) \sqrt{2}}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.52928, size = 27, normalized size = 1.08 \begin{align*} \frac{1}{3} \, x^{3} + \frac{1}{2} \, \sqrt{2} \arctan \left (\sqrt{2} x\right ) - x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.40986, size = 61, normalized size = 2.44 \begin{align*} \frac{1}{3} \, x^{3} + \frac{1}{2} \, \sqrt{2} \arctan \left (\sqrt{2} x\right ) - x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.087976, size = 20, normalized size = 0.8 \begin{align*} \frac{x^{3}}{3} - x + \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17975, size = 27, normalized size = 1.08 \begin{align*} \frac{1}{3} \, x^{3} + \frac{1}{2} \, \sqrt{2} \arctan \left (\sqrt{2} x\right ) - x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]